import unittest
import s_function
import math


class MyTestCase(unittest.TestCase):
    def test_s(self):
        for rand in range(-10000, 10000, 1):
            self.assertAlmostEqual(math.sin(rand / 500), s_function.s(rand / 500), delta=1E-5)


if __name__ == '__main__':
    unittest.main()
